package com.imay.live.view;

import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

/**
 * Created by jeaman on 2017/4/18.
 */

public abstract class ColorClickableSpan extends ClickableSpan {
    private int color;

    public ColorClickableSpan(int color) {
        this.color = color;
    }

    @Override
    public void updateDrawState(TextPaint ds) {
        ds.setColor(color);
        ds.setUnderlineText(true);
    }
}
